package process_demo.thread_safe.exclusive;

/**
 * @author haomin
 * @date 2022/04/22 21:08
 **/

public class SomeClass {
    synchronized void m1() { }
    synchronized static void m2() { }
    void m3() { }
    void m4() {
        synchronized (this) { }
    }
    void m5() {
        synchronized (SomeClass.class) { }
    }
    Object o1 = new Object();
    void m6() {
        synchronized (o1) { }
    }
    static Object o2 = new Object();
    void m7() {
        synchronized (o2) { }
    }
}
